import request from '@/utils/request'

// 查询加工技术类列表
export function listProcess(query) {
  return request({
    url: '/wfshou/process/list',
    method: 'get',
    params: query
  })
}

// 查询加工技术类详细
export function getProcess(procId) {
  return request({
    url: '/wfshou/process/' + procId,
    method: 'get'
  })
}

// 新增加工技术类
export function addProcess(data) {
  return request({
    url: '/wfshou/process',
    method: 'post',
    data: data
  })
}

// 修改加工技术类
export function updateProcess(data) {
  return request({
    url: '/wfshou/process',
    method: 'put',
    data: data
  })
}

// 删除加工技术类
export function delProcess(procId) {
  return request({
    url: '/wfshou/process/' + procId,
    method: 'delete'
  })
}
